<?php
  include 'classes/wordcloud.class.php';
?>
<link rel="stylesheet" href="./css/wordcloud.css" type="text/css"> 
<?php
$cloud = new wordCloud();
$cloud->addWord(array('word' => 'php', 'size' => 1, 'url' => 'javascript: addNewTab(\'php\',\'tagsty/response_eco.php?id=0\');','title' =>'Name: Php, Method Name: PHP Page, Type Category: Tagsty'));
$cloud->addWord(array('word' => 'google', 'size' => 2, 'url' => 'javascript: addNewTab(\'Google\',\'tagsty/response_eco.php?id=1\');','title' =>'Title for google.com'));
$cloud->addWord(array('word' => 'digg', 'size' => 3, 'url' => 'javascript: addNewTab(\'digg\',\'tagsty/response_eco.php?id=2\');','title' =>'Title for Digg'));
$cloud->addWord(array('word' => 'lotsofcode', 'size' => 4, 'url' => 'javascript: addNewTab(\'lotsofcode\',\'tagsty/response_eco.php?id=3\');','title' =>'Title for lotsoftcode'));
$myCloud = $cloud->showCloud('array');
//print_R($myCloud);
foreach ($myCloud as $cloudArray) {
  echo ' &nbsp; <a href="'.$cloudArray['url'].'" title="'.$cloudArray['title'].'" class="word size'.$cloudArray['range'].'">'.$cloudArray['word'].'</a> &nbsp;';
}
?>
